package com.tuanbiao.constants;

import androidx.annotation.IntDef;
import androidx.annotation.StringDef;

/**
 * @author abiao
 * @since 2022/4/2 10:22
 */
public class Constants {
    public static class DetonatorPlanProvideType {
        //行
        public static final int ROW = 1;
        //列
        public static final int COLUMN = 2;
    }

    public static class ScannerKeyCodes {
        public static final int F1 = 520;
        public static final int F2 = 521;
        public static final int F4 = 134;
        public static final int MIDDLE = 522;
    }

    @IntDef({ScannerKeyCodes.F1, ScannerKeyCodes.F2, ScannerKeyCodes.MIDDLE})
    public @interface ScannerKeyCode {
    }

    public static class DetonatorSortTypes {
        public static final String ROW = "孔排排序";
        public static final String DELAY = "延时排序";
        public static final String UID = "编码排序";
    }

    @StringDef({DetonatorSortTypes.ROW, DetonatorSortTypes.DELAY, DetonatorSortTypes.UID})
    public @interface DetonatorSortType {
    }

    public static class DetonatorOrderTypes {
        public static final String UP = "升序";
        public static final String DOWN = "降序";
    }

    @StringDef({DetonatorOrderTypes.UP, DetonatorOrderTypes.DOWN})
    public @interface DetonatorOrderType {
    }

    public static class CompanyType {
        public static final String BUSINESS = "营业性";
        public static final String NO_BUSINESS = "非营业性";
    }

    public static class NettedStatusName {
        public static final String CAP_CHECK = "雷管检查";

        public static final String CAP_UNDER = "下传发方案";

        public static final String CAP_UNDER_CHECK = "方案检查";

        public static final String CAP_AUTH_CHECK = "授权检查";

        public static final String CAP_TIME_CHECK = "延时检查";
    }

    public static class WorkMode {
        public static final String HIGH_TEMP = "高温模式";
        public static final String NORMAL = "正常模式";
    }

    public static class MaxConfig {
        //设置爆破记录最大支持数
        public static final int MAX_LOG = 10;

        //最大雷管数
        public static final int MAX_DETONATOR = 10;

        //登录时效
        public static final long LOGIN_LIMIT_TIME = 3 * 24 * 60 * 60 * 1000;
        //登录时效
//        public static final long LOGIN_LIMIT_TIME = 60 * 1000;
    }

    public static class CodeModel {
        public static final String DEFAULT = "默认";
        public static final String WEI_DONG = "卫东";
        public static final String XIAN_QINGHUA = "西安庆华";
    }

    public static class CodeErrorCode {
        public static final int SUCCESS = 0;
        public static final int REPEAT = 3;
        public static final int CODE_ERROR = 1;
        public static final int NO_PLAN_ID_SUCCESS = 6;
    }
}
